﻿namespace WeatherSpider.Models
{
    public class OnedayWeather
    {
        /// <summary>
        /// 日期
        /// </summary>
        public DateOnly Date { get; set; }

        /// <summary>
        /// 日间天气
        /// </summary>
        public Weather Day { get; set; } = null!;

        /// <summary>
        /// 夜间天气
        /// </summary>
        public Weather Night { get; set; } = null!;

        public override string ToString()
        {
            return $"{Date}\t日间: {Day}\t夜间: {Night}";
        }
    }
}
